cordova.define("org.apache.cordova.rfid.RfidImpl", function(require, exports, module) {
var exec = require('cordova/exec');

// 设备初始化
exports.init = function (arg0, success, error) {
    exec(success, error, 'RfidImpl', 'init', [arg0]);
};

// 连接蓝牙
exports.open = function (arg0, success, error) {
    exec(success, error, 'RfidImpl', 'open', [arg0]);
};

// 断开蓝牙
exports.close = function (arg0, success, error) {
    exec(success, error, 'RfidImpl', 'close', [arg0]);
};

// 开始盘点
exports.startSearchTag = function (arg0, success, error) {
    exec(success, error, 'RfidImpl', 'searchTag', [arg0]);
};

// 停止盘点
exports.stopSearchTag = function (arg0, success, error) {
    exec(success, error, 'RfidImpl', 'stopSearch', [arg0]);
};

// 获取 RFID 设备 MAC 等信息
exports.getAvaliableDevices = function (arg0, success, error) {
    exec(success, error, 'RfidImpl', 'getDevice', [arg0]);
};

});
